import request from './request.js'

// 上传图片
export const upLoadImg = (filePath, name, data) => request.upLoadFile('api/Updates/updateimg', filePath, name,data);

// 上传多图片
export const upLoadImgList = (filePath, name, data) => request.upLoadFile('api/Updates/updatelist', filePath, name,data);

// 登录
export const doLogin = data => request.post('api/Login/getuserInfo', data, false);

// 查询用户是否注册
export const judeRegister = data => request.post('api/Login/login', data, false);

// 注册
export const registerApi = data => request.post('api/Login/ref', data, false);

// 折线图
export const getChartData = data => request.post('api/index/zxt', data);

// 活动列表
export const getActList = data => request.post('api/Index/index', data);

// 单条活动
export const getActListById = data => request.post('api/Dzinfo/gethddetail', data);

// 添加活动
export const addAct = data => request.post('api/Index/addhd', data);

// 获取用户信息
export const getUinfo = data => request.post('api/Login/getinfo', data);

// 技师列表
export const getjsList = data => request.post('api/Index/paylist', data);
//添加技师
export const addjsList = data => request.post('api/Index/addjs', data);
//获取预约信息
export const getOrderLine = data => request.post('api/Orders/getorderline', data);
//获取交易信息
export const getorderpay = data => request.post('api/Orders/getorderpay', data);
//获取门店电话信息
export const getcallhistory = data => request.post('api/Orders/getcallhistory', data);
//咨询信息
export const getsaveQrCodeHistory = data => request.post('api/Orders/getsaveQrCodeHistory', data);
//核销订单处理
export const gethexiao = data => request.post('api/Orders/gethexiao', data);
//核销订单详细信息
export const gethexiaodetail = data => request.post('api/Orders/gethexiaodetail', data);
//核销
export const orderhx = data => request.post('api/Orders/orderhx', data);
//订单列表
export const orderslist = data => request.post('api/Orders/orderslist', data);
// 使用门店
export const getMenDian = data => request.post('api/Dzinfo/getmdian', data);
//获取商家信息
export const getrehabCenterDetail = data => request.post('api/Dzinfo/getrehabCenterDetail', data);
//获取用户信息
export const getuinfo = data => request.post('api/Dzinfo/getuinfo', data);
//获取用户信息
export const gettoken = data => request.post('api/Dzinfo/gettoken', data);

// 是否同意退款
export const orderTuiKuan = data => request.post('api/Orders/editorders', data);

// 是否同意退款
export const getjsinfo = data => request.post('api/Dzinfo/getjsinfo', data);
//修改技术信息
export const editjsList = data => request.post('api/Dzinfo/editjsList', data);
//删除技术信息

export const deljs = data => request.post('api/Dzinfo/deljs', data);